function updCurrUserPasswordDialog() {
    const $form = $(`
        <form class="mask-account">
            <div style="margin: 0">
                <span class="mask-account-tit">登录密码</span>
                <span class="input-select"><input type="password" name="oriPassword" placeholder="请输入登录密码" /></span>
            </div>
            <div>
                <span class="mask-account-tit">新密码</span>
                <span class="input-select"><input type="password" name="password" placeholder="请输入新密码" /></span>
            </div>
            <div>
                <span class="mask-account-tit">确认密码</span>
                <span class="input-select"><input type="password" name="rePassword" placeholder="请确认密码" /></span>
            </div>
        </form>
    `);

    const $dialogWidget = $.dialog($form, {
        title: "修改密码",
        width: "500px",
        ok: () => {
            const data = $.getFormData($form);
            const {password, rePassword} = data;
            if (password != null || rePassword != null) {
                if (password !== rePassword) {
                    return $.toast("两次密码不一致");
                }
            }

            updCurrUserPassword(data, res => {
                if (res.Code !== 10000) {
                    return $.toast(res.Message);
                }

                $dialogWidget.remove();
                $.toast("修改成功", 2000, () => {
                    window.parent.location.href = "/admin/login.html";
                });
            })
        }
    })


    function updCurrUserPassword(param, callback = Function()) {
        return $.sApi({
            data: param,
            url: "/Login/updCurrUserPassword",

        }, callback)
    }
}